using HCore.Core;
using HCore.IOC.Context.Stereotype;

namespace HCore.Tests.Runtime.ShootingEditor2D.Scripts.System.PlayerSystem
{
    /// <summary>
    ///     玩家数据
    /// </summary>
    public interface IPlayerModel
    {
        /// <summary>
        ///     血量，默认为3
        /// </summary>
        BindableProperty<int> Hp { get; }
    }

    [Component]
    public class PlayerModel : IPlayerModel
    {
        public BindableProperty<int> Hp { get; } = new(3);
    }
}